<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('discuz');?><?php include template('common/header'); if($_G['setting']['mobile']['mobilehotthread'] && $_GET['forumlist'] != 1) { dheader('Location:forum.php?mod=guide&view=hot');exit;?><?php } ?>
<?php if(!empty($_G['setting']['pluginhooks']['index_quappdiy'])) echo $_G['setting']['pluginhooks']['index_quappdiy'];?>
<style id="diy_style" type="text/css"></style>

<div class="header forum-bar-nav">
    <div class="nav">
        <a class="z back" href="javascript:history.back();"><i class="iconfont icon-back_light"></i></a>
        <span class="name"><?php echo $alang_forum;?></span>
        <a id="ainuo_toggle_menu" href="javascript:;" class="y"><i class="iconfont icon-menu1"></i></a>
    </div>
</div><?php include template('common/top_fix'); ?><div class="forumfocus cl">
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>
<script>
var swiper = new Swiper('.swiper-container', {
    pagination: '.swiper-pagination',
    paginationClickable: true,
    loop : true,
    autoplay : 3000,
});
var tjswiper = new Swiper('#guide', {
direction: 'vertical',
loop : true,
simulateTouch : false,
autoplay : 2800,
onlyExternal :true,
});
</script>

<?php if($_G['cache']['plugin']['qu_app']['forumstyle'] == 2) { include template('bbs/bbs2'); exit();?><?php } if($_G['cache']['plugin']['qu_app']['forumstyle'] == 3) { include template('bbs/bbs3'); exit();?><?php } if($_G['cache']['plugin']['qu_app']['forumstyle'] == 4) { include template('bbs/bbs4'); exit();?><?php } if($_G['cache']['plugin']['qu_app']['forumstyle'] == 5) { include template('bbs/bbs5'); exit();?><?php } ?>
<style>
.forum-plate-bar{position: absolute; height:100%;top:0;left:0;-webkit-overflow-scrolling:touch;width:5rem;font-size:.6rem;background-color:#f2f2f2; border-right:1px solid #e2e2e2;-webkit-transition:-webkit-transform 300ms;transition:-webkit-transform 300ms;transition:transform 300ms;transition:transform 300ms, -webkit-transform 300ms;-webkit-transform:translate(-100%, 0);transform:translate(-100%, 0)}
.forum-plate-bar .item{position:relative;text-align:center;padding:0; margin:0;}
.forum-plate-bar .item a{ display:block;padding:14px 0;border-left:2px solid #f8f8f8; font-size:14px;border-bottom:1px solid #eee;margin-right:-1px;color:#777;}
.forum-plate-bar .item a.active{color: #f23030;border-left:2px solid #f23030; background:#fff; }
.forum-plate-bar li:first-child a.active{}
.forum-plate-bar .badge{position:absolute;top:50%;right:.1rem;z-index:100;height:.8rem;margin-top:-.4rem;min-width:.8rem;padding:0 .2rem;font-size:.6rem;line-height:.8rem;color:white;vertical-align:top;background:red;-webkit-border-radius:.5rem;border-radius:.5rem;margin-left:.1rem}
.bar-nav ~ .forum-plate-bar{top:2.2rem}
.bar-tab ~ .forum-plate-bar{bottom:2.5rem}
.forum-plate-bar.news-style .item{text-align:left;padding-left:.5rem}
.forum-plate-bar.news-style .item.active{color:#3d4145}
.forum-container{-webkit-transition:margin-left 300ms;transition:margin-left 300ms}
.forum-plate-bar{-webkit-transform:translate(0, 0);transform:translate(0, 0)}
.forum-container{margin-left:5rem;}
.tabs .tab{ display:none;}
.tabs .tab.active {display: block;}
.ainuo_index_forum{ position:relative; background:#fff; min-height:500px;}
.ainuo_index_forum .tabs{ background:#fff;}
.ainuo_indextuijian{background:#fff;}
.sub_forum li:last-child{ border-bottom:none;}
.ainuopage_main{padding-bottom:46px !important;}
.mui-media-body em{ font-size:10px; color:#fff; background:#f60; border-radius:20px; padding:0 5px; margin-left:5px;}
</style>
<div class="ainuo_index_forum cl">
<div class="z-scroll forum-plate-bar">
<ul id="forum-plate-bar"><?php $firsttab = 0;?>        <?php if(is_array($catlist)) foreach($catlist as $key => $cat) { ?>        <?php $firsttab++;?><li class="item"><a href="#tab<?php echo $cat['fid'];?>" class="tab-link <?php if($firsttab == 1) { ?>active<?php } ?>" style="<?php if($cat['extra']['namecolor']) { ?>color: <?php echo $cat['extra']['namecolor'];?>;<?php } ?>"><?php echo $cat['name'];?></a></li>
        <?php } ?>
        <li class="item"><a href="#tab9999" class="tab-link"><?php echo $alang_my;?><?php echo $alang_gz;?></a></li>
   </ul>
</div>

<div class="infinite-scroll-bottom forum-container">
<?php if(!empty($_G['setting']['pluginhooks']['index_top_mobile'])) echo $_G['setting']['pluginhooks']['index_top_mobile'];?>
<div class="tabs"><?php $firstforum = 0;?><?php if(is_array($catlist)) foreach($catlist as $key => $cat) { $firstforum++;?><div class="sub_forum tab <?php if($firstforum == 1) { ?>active<?php } ?>" id="tab<?php echo $cat['fid'];?>">
<ul class="cl"><?php if(is_array($cat['forums'])) foreach($cat['forums'] as $forumid) { $forum=$forumlist[$forumid];?>        <?php include(DISCUZ_ROOT."./template/qu_app/touch/ainuo/appme.php");?>            <li>
                <div class="subicon">
                <?php if($forum['icon']) { ?>
                    <?php echo $forum['icon'];?>
                <?php } else { ?>
                    <a <?php echo $app_forumurl;?>><img src="template/qu_app/touch/style/css/0.png" alt="<?php echo $forum['name'];?>" /></a>
                <?php } ?>
                </div>
                <a <?php echo $app_forumurl;?> class="mui-right">
                    <i class="iconfont icon-right"></i>
                    <div class="mui-media-body">
                        <h2 <?php if($forum['extra']['namecolor']) { ?> style="color: <?php echo $forum['extra']['namecolor'];?>;"<?php } ?>><?php echo $forum['name'];?><?php if($forum['todayposts'] && !$forum['redirect']) { ?><em><?php echo $forum['todayposts'];?></em><?php } ?></h2>
                        <p class="mui-ellipsis">
                        <?php if($forum['description']) { ?>
                        <?php echo $forum['description'];?>
                        <?php } else { ?>
                        主题: <?php echo dnumber($forum['threads']); ?>&nbsp;&nbsp;帖子: <?php echo dnumber($forum['posts']); ?>                        <?php } ?>

                        </p>
                    </div>
                </a>
            </li>
            <?php } ?>
        </ul>
    </div>
    
<?php } ?>
<div class="sub_forum tab" id="tab9999">
    	<?php if($forum_favlist) { ?>
        	<ul>
        <?php if(is_array($forum_favlist)) foreach($forum_favlist as $key => $favorite) { if($favforumlist[$favorite['id']]) { $forum=$favforumlist[$favorite[id]];?><?php $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];?>                <?php } ?>  
                <?php include(DISCUZ_ROOT."./template/qu_app/touch/ainuo/appme.php");?>       
<li>
                    <div class="subicon">
                    <?php if($forum['icon']) { ?>
                        <?php echo $forum['icon'];?>
                    <?php } else { ?>
                        <a <?php echo $app_forumurl;?>><img src="template/qu_app/touch/style/css/0.png" /></a>
                    <?php } ?>
                    </div>
                    <a <?php echo $app_forumurl;?> class="mui-right">
                        <i class="iconfont icon-right"></i>
                        <div class="mui-media-body">
                            <h2 <?php if($forum['extra']['namecolor']) { ?> style="color: <?php echo $forum['extra']['namecolor'];?>;"<?php } ?>><?php echo $forum['name'];?><?php if($forum['todayposts'] && !$forum['redirect']) { ?><em><?php echo $forum['todayposts'];?></em><?php } ?></h2>
                            <p class="mui-ellipsis">
                            <?php if($forum['description']) { ?>
                            <?php echo $forum['description'];?>
                            <?php } else { ?>
                            主题: <?php echo dnumber($forum['threads']); ?>&nbsp;&nbsp;帖子: <?php echo dnumber($forum['posts']); ?>                            <?php } ?>
                            </p>
                        </div>
                    </a>
                </li>
<?php } ?>
                </ul>
        <?php } else { ?>
        	<?php if($_G['uid']) { ?>
        	<div class="ainuoemp"><?php echo $alang_zanwuguanzhu;?></div>
            <?php } else { ?>
            <div class="ainuoemp"><a href="javascript:;" class="ainuo_nologin"><?php echo $alang_loginfirst;?> <i class="iconfont icon-right"></i></a>
            <p style="margin-top:20px;"><?php echo $alang_addguanzhu;?></p>
            </div>
            <?php } ?>
        <?php } ?>
    	
    	</div>
</div>
</div>
</div>

  

<?php if(!empty($_G['setting']['pluginhooks']['index_middle_mobile'])) echo $_G['setting']['pluginhooks']['index_middle_mobile'];?><?php include template('common/footer'); ?>